package com.hziee.mail.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * 购物车总类
 *
 * @author ZX
 */
public class SkuInfoListEntity implements Serializable {
    List<SkuInfoEntity> items = new ArrayList<SkuInfoEntity>();
    Integer userId;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public List<SkuInfoEntity> getItems() {
        return items;
    }

    public void setItems(List<SkuInfoEntity> items) {
        this.items = items;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof SkuInfoListEntity)) return false;
        SkuInfoListEntity that = (SkuInfoListEntity) o;
        return Objects.equals(items, that.items);
    }

    @Override
    public int hashCode() {
        return Objects.hash(items);
    }

    @Override
    public String toString() {
        return "SkuInfoListEntity{" +
                "items=" + items +
                '}';
    }
}
